package com.zdp.seckill.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sesshomaru
 * @since 2021-06-17
 */
@TableName("stock_log")
public class StockLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private String stockLogId;

    private Integer itemId;

    private Integer amount;

    /**
     * //1表示初始状态，2表示下单扣减库存成功，3表示下单回滚
     */
    private Integer status;


    public String getStockLogId() {
        return stockLogId;
    }

    public void setStockLogId(String stockLogId) {
        this.stockLogId = stockLogId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "StockLog{" +
        "stockLogId=" + stockLogId +
        ", itemId=" + itemId +
        ", amount=" + amount +
        ", status=" + status +
        "}";
    }
}
